#ifndef DRAWCURVEWINDOW_H
#define DRAWCURVEWINDOW_H

#include <QMainWindow>
#include <QImage>
#include <QPainter>
#include "dealpandata.h"
#include "paintcurve.h"
#include <QDebug>
#include <QFileDialog>
#include <QMessageBox>

namespace Ui {
class DrawCurveWindow;
}

class DrawCurveWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit DrawCurveWindow(DealPanData* d, QWidget *parent);
    ~DrawCurveWindow();
    
private slots:
    void on_actionSave_triggered();

private:
    Ui::DrawCurveWindow *ui;
    void tryDraw();
    void paintEvent(QPaintEvent *event);

    QImage image;
    DealPanData* dpd;
};


#endif // DRAWCURVEWINDOW_H
